package com.shark.springbootcms.mapper;

import com.shark.springbootcms.form.MenuForm;
import com.shark.springbootcms.vo.MenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper {
    void addMenu(@Param("form") MenuForm form,@Param("parentId") String parentId,@Param("parentName") String parentName);

    List<MenuVo> selectAll();

    MenuVo getMenuById(String id);

    List<String> selectMenuByParentId(String id);

    List<String> selectMenuByParentIds(List<String> list);

    void deleteByIds( List<String> list);

    List<MenuVo> selectParentMenu();

    void editMenu(@Param("form") MenuForm form,@Param("parentName") String parentName);

    void deleteRoleMenuByMenuIds(@Param("list") List<String> ids);
}
